import { http } from "@/utils/request";

export default {
	get(url, data) {
    return http({
			url,
			data,
			method: 'GET'
    })
  },
  delete(url, data) {
    return http({
      url,
      data,
      method: 'DELETE'
    })
  },
  put(url, data, headers) {
    return http({
      url,
      data,
      headers: {
        "Content-Type": "application/json;charset=UTF-8",
        ...headers
      },
      method: "PUT"
    })
  },
  post(url, data, headers) {
    return http({
      url,
      data,
      headers: {
        "Content-Type": "application/json;charset=UTF-8",
        ...headers
      },
      method: "POST"
    })
  }
}